import request from '@/utils/request'

// 查询学年表列表
export function listSchool_year(query) {
    return request({
        url: '/basic/school_year/list',
        method: 'get',
        params: query
    })
}

// 查询学年表详细
export function getSchool_year(id) {
    return request({
        url: '/basic/school_year/' + id,
        method: 'get'
    })
}

// 新增学年表
export function addSchool_year(data) {
    return request({
        url: '/basic/school_year',
        method: 'post',
        data: data
    })
}

// 修改学年表
export function updateSchool_year(data) {
    return request({
        url: '/basic/school_year',
        method: 'put',
        data: data
    })
}

// 删除学年表
export function delSchool_year(id) {
    return request({
        url: '/basic/school_year/' + id,
        method: 'delete'
    })
}
